package win.demonlegion.module;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class DynamicBean implements Serializable {
    private static final long serialVersionUID = 1960489348243554313L;

    private String id;
    private String userId;
    private String headPhoto;
    private String nickname;
    private String phone;
    private String context;
    private String dynamicPath;
    private int width;
    private int height;
    private int isHot;
    private int sumHot; // 热门指数：4*评论数+3*转发数+2*点赞数+1*收藏数
    //    private int orderNum;
    private int stateStation = 1; // 是否替换 1未换 2替换
    private int readCount;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private int sumLike; // 动态点赞数
    private int sumDiscuss; // 动态评论数
    private int sumRepeat; //动态转发数
    private int sumUserDynamic; // 用户动态数

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getHeadPhoto() {
        return headPhoto;
    }

    public void setHeadPhoto(String headPhoto) {
        this.headPhoto = headPhoto;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getDynamicPath() {
        return dynamicPath;
    }

    public void setDynamicPath(String dynamicPath) {
        this.dynamicPath = dynamicPath;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getIsHot() {
        return isHot;
    }

    public void setIsHot(int isHot) {
        this.isHot = isHot;
    }

    public int getSumHot() {
        return sumHot;
    }

    public void setSumHot(int sumHot) {
        this.sumHot = sumHot;
    }

    public int getStateStation() {
        return stateStation;
    }

    public void setStateStation(int stateStation) {
        this.stateStation = stateStation;
    }

    public int getReadCount() {
        return readCount;
    }

    public void setReadCount(int readCount) {
        this.readCount = readCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getSumLike() {
        return sumLike;
    }

    public void setSumLike(int sumLike) {
        this.sumLike = sumLike;
    }

    public int getSumDiscuss() {
        return sumDiscuss;
    }

    public void setSumDiscuss(int sumDiscuss) {
        this.sumDiscuss = sumDiscuss;
    }

    public int getSumRepeat() {
        return sumRepeat;
    }

    public void setSumRepeat(int sumRepeat) {
        this.sumRepeat = sumRepeat;
    }

    public int getSumUserDynamic() {
        return sumUserDynamic;
    }

    public void setSumUserDynamic(int sumUserDynamic) {
        this.sumUserDynamic = sumUserDynamic;
    }
}
